<?php
session_start();
require_once('../include/connect.inc.php');
		echo $r_student_id=$_SESSION['id'];//รหัสนิสิต
		echo $sumscore=$_POST[sumscore];
		echo $set_id=$_POST[set_id];//รหัสชุด
		echo $dotest_id=$_POST[dotest_id];
		echo $dates=date("Y-m-d");
$strSql="INSERT INTO  tb_score (r_student_id,sumscore,set_id,dotest_id,dates) VALUES ('$r_student_id','$sumscore','$set_id','$dotest_id','$dates')";
		$rs = execute($strSql);
			sleep(1);// หน่วงเวลาไว้ 1 วิ
			echo "<script>window.location='../show_dotest_result.php';</script>";
?>